package main

import "fmt"

func fn1(n int) {
	fmt.Println("fn1", n)
	n--
	if n == 0 {
		return
	}
	fn1(n)
}

func fn2(n int) int {
	if n == 0 {
		return n
	}
	return fn2(n-1) + n
}

func main() {
	fn1(10)
	i := fn2(10)
	fmt.Println(i)
}
